(function() {

	GameSlider = function(rpc) {
		this.rpc = rpc;
		this.slider = slider;
		this.is_background = false;
		
	};
	
	GameSlider.prototype = {
			start : function(is_background) {
				$(document.getElementById('screen_game_slider')).show();
				this.is_background = is_background;
				this.slieder = document.getElementById('slider');
				this.slider.bind("slidechange", this.slide.bind(this));
			},
			stop : function() {
				this.slider.unbind("slidechange", this.slide.bind(this));
			},
			show : function() {
				$('#screen_game_slider').show();
			},
			hide : function() {
				$('#screen_game_slider').hide();
			},
			
			slidechange : function(event, ui) {
				console.log(event);
				//this.debug()
			},
			debug : function(val) {
				$('#debug').text("Slider value", val);
			}
	};
	
})();
	